@extends('home.layouts.base')

@section('title','Vanity')

@section('bigbanner')
    <h2 style="color:white">千里之行，始于足下！</h2>
    <p></p>
@stop

@section('content')
    <div class="col-md-8">
        @if($art_list)
            @foreach($art_list as $value)
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title">{{$value->title}}</h3>
                </div>
                <div class="panel-body">
                    <p>{{$value->description}}</p>
                    <span class="glyphicon glyphicon-calendar" aria-hidden="true">{{$value->created_at}}</span>&nbsp;
                    <span class="glyphicon glyphicon-th-list" aria-hidden="true"><a href="{{route('category',['cid'=>$value->cate_id])}}">{{$value->cate_name}}</a></span>
                    <span class="glyphicon glyphicon-eye-open pull-right" aria-hidden="true"><span style="color:#425c75">{{$value->read_num}}</span>views</span>

                </div>
                <!-- Provides extra visual weight and identifies the primary action in a set of buttons -->
                <div class="text-right">
                    <a href="/article/{{$value->id}}"><button type="button" class="btn btn-primary home_background_color margin_five" style="border-color:#425c75;">read me</button></a>
                </div>
            </div>
            @endforeach
            @else
            <div>暂无文章</div>
        @endif
        <div class="text-right">
            {{ $art_list->links() }}
        </div>


    </div>
@stop